<%@ page import="org.slf4j.Logger" %>
<%@ page import="org.slf4j.LoggerFactory" %><%--
  Created by IntelliJ IDEA.
  User: w7851
  Date: 2018/5/20
  Time: 8:24
  To change this template use File | Settings | File Templates.
  管理控制台页面
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<%
    boolean isok=false;

    try {
        isok= (boolean) session.getAttribute("isok");
    } catch (Exception e) {
        Logger logger= LoggerFactory.getLogger(this.getClass());
        logger.debug("go login");
    }

    if (!isok) {
        response.sendRedirect("/admdeskjsps/consologin.jsp");
        return;
    }
    String username = (String) session.getAttribute("user");
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>资源管理系统</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <style>

    </style>
</head>

<body class="layui-layout-body">

<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">资源管理</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">欢迎,<%=username%>
            </li>
            <li class="layui-nav-item"><a href="/admdesk?method=logout">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">

                <li class="layui-nav-item layui-nav-itemed">
                    <a>系统及管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/admdeskjsps/systemstatus.jsp" target="itemcontent">系统状态</a></dd>
                        <dd><a href="/admdeskjsps/meirijilu.jsp" target="itemcontent">运行记录</a></dd>
                    </dl>
                </li>


                <li class="layui-nav-item layui-nav-itemed">
                    <a>用户和产品</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/admdeskjsps/userlist.jsp" target="itemcontent">用户列表</a></dd>
                        <dd><a href="/admdeskjsps/chanpinlist.jsp" target="itemcontent">产品列表</a></dd>
                    </dl>
                </li>


                <li class="layui-nav-item">
                    <a>资金相关</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/admdeskjsps/dingdanjilu.jsp" target="itemcontent">订单记录</a></dd>
                        <dd><a href="/admdeskjsps/yongjinjilu.jsp" target="itemcontent">佣金记录</a></dd>
                        <dd><a href="/admdeskjsps/fenhongjihua.jsp" target="itemcontent">分红计划</a></dd>
                        <dd><a href="/admdeskjsps/tixianjilu.jsp" target="itemcontent">提现记录</a></dd>
                        <dd><a href="/admdeskjsps/zijinliushui.jsp" target="itemcontent">资金流水</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item">
                    <a>分红和业绩</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/admdeskjsps/quanqiufenhong.jsp" target="itemcontent">推荐人数排行</a></dd>
                        <dd><a href="/admdeskjsps/yjtdfhliushui.jsp" target="itemcontent">永久团队分红</a></dd>
                        <dd><a href="/admdeskjsps/quanqfhliushui.jsp" target="itemcontent">全球分红流水</a></dd>
                    </dl>
                </li>

            </ul>
        </div>
    </div>

    <div class="layui-body" style="bottom: 0px">
        <div style="width: 100%;height: 99%">
            <div style="width: 100%;height: 99%">
                <iframe name="itemcontent" src="/admdeskjsps/userlist.jsp"
                        style="width: 100%;height: 100%" frameborder="0"
                ></iframe>
            </div>
        </div>


    </div>

</div>

</body>
<script src="../layui/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;

    });
</script>
</html>
